﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Simpletron
{
  public static class Extensions
  {
    public static T[] GetSubArray<T>(this Array source, int index, int count)
    {
      T[] subScript = new T[count];

      Array.ConstrainedCopy(source,index,subScript,0,count);

      return subScript;
    }
  }
}
